<?php

class CategoryTable extends Doctrine_Table
{
  
    public function fetchArray($params = array())
    {
        $q = Doctrine_Query::create()
             ->select('id, name')
             ->from('Category');
        $rss = $q->execute();
        
        $res = array();
        $res[0] = '';
        foreach ($rss as $rs)
        {
          $res[$rs->getId()] = $rs;
        }
        return $res;
    }


}